<?php
use yii\widgets\ActiveForm;
use yii\helpers\Html;
?>
<div>
    <div>
        <?php $form = ActiveForm::begin(['enableClientValidation' => true, 'enableAjaxValidation' => false, 'options' => ['class' => 'form-validate']]); ?>
        <table width="100%" class="table-form">
            <tr>
                <th class="zx-goods-table" style="width: 30%">从那个课次关闭</th>
                <td style="display: inline-block;width: 206px"><?= $form->field($model, 'lesson_id', ['template' => '{input}{error}{hint}'])->widget(\kartik\select2\Select2::className(),['data'=>$lesssonList,'options' => ['placeholder' => '请选择']]) ?></td>
            </tr>
        </table>
        <div class="yx-submit-box" style="display: none">
            <?= Html::submitButton('提交', ['class' => "button yx-submit yx-radius5", 'id' => 'button dosubmit']) ?>
        </div>
        <?php ActiveForm::end(); ?>
    </div>
</div>